package com.jay.tab.bottom;

import android.graphics.Bitmap;

import androidx.fragment.app.Fragment;

/**
 * @ClassName: HiTabBottomInfo
 * @Description: java类作用描述
 * @Author: yangjie
 * @Date: 2022/4/11 9:59 下午
 */
public class HiTabBottomInfo<Color>{

    public enum  TabType{
        BITMAP,ICON
    }
    public Class<? extends Fragment> fragment;
    public String name;
    public Bitmap defaultBitmap;
    public Bitmap selectedBitmap;
    public String iconFont;
    /**
     * 在java代码中直接设置iconfont字符串无效。需要定义在string.xml
     */
    public String defaultIconName;
    public String selectedIconName;
    public Color defaultColor;
    public Color tintColor;
    public TabType tabType;

    public HiTabBottomInfo(String name, Bitmap defaultBitmap, Bitmap selectedBitmap) {
        this.name = name;
        this.defaultBitmap = defaultBitmap;
        this.selectedBitmap = selectedBitmap;
        this.tabType=TabType.BITMAP;
    }

    public HiTabBottomInfo(String name,String iconFont, String defaultIconName, String selectedIconName, Color defaultColor, Color tintColor) {
        this.name=name;
        this.iconFont = iconFont;
        this.defaultIconName = defaultIconName;
        this.selectedIconName = selectedIconName;
        this.defaultColor = defaultColor;
        this.tintColor = tintColor;
        this.tabType=TabType.ICON;

    }
}
